package com.wuye.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wuye.common.annotation.Excel;
import com.wuye.common.core.domain.BaseEntity;

/**
 * 车位查询对象 wy_parking_lot
 * 
 * @author avalon
 * @date 2024-11-23
 */
@Data
public class WyParkingLot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车位id */
    @Excel(name = "车位id")
    @TableId(type = IdType.AUTO)
    private Long parkId;

    /** 车位编号 */
    @Excel(name = "车位编号")
    private Long parkNum;

    /** 车位状态 */
    @Excel(name = "车位状态")
    private String parkStatus;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private Long regionId;

    /** 逻辑删除 0 不删除 1 删除 */
    @TableLogic
    private Long del;
    /** 区域 */
    @TableField(exist = false)
    private WyRegion region;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parkId", getParkId())
            .append("parkNum", getParkNum())
            .append("parkStatus", getParkStatus())
            .append("regionId", getRegionId())
            .append("remark", getRemark())
            .append("del", getDel())
            .toString();
    }


}
